<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<form method="post" action="/login_action/">
    用户名:<input name="username" type="text"></input><br>
      密码:<input name="password" type="password"></input><br>
    {{ error}}<br>
    <button name="login" type="submit">登录</button>
{% csrf_token  %}
</form>
</body>
</html>